home *** CD-ROM | disk | FTP | other *** search
-
- ~4Dgifts/toolbox/src/exampleCode/opengl/motif README
-
-
- THIS CODE RUNS/COMPILES ON 5.1 Irix OR LATER
- THIS CODE WILL NOT RUN ON LESS THAN 5.1 Irix
-
- (all the o*.c files were updated to reflect the shift of the
- drawing area widget, GLwMDrawA.h, moved into /usr/include/GL)
-
-
- This directory contains sample openGL source code based on the MOTIF toolkit,
- or at least, including the Motif library (see textfun).
-
- Following is the directory inventory:
-
- oblur : this program shows how to use accumulation buffer
- to do motion blur
- left mouse for animation
- middle mouse to turn motion blur OFF (default)
- right mouse to turn motion blur ON
-
- obuffer : this program shows how to toggle between single and double
- buffer mode on the fly. use left and middle mouse to switch
- buffers and right mouse for animation.
-
- oclip : this program shows the usage of arbitrary clipping plane.
- use left mouse to animate the object and right mouse to
- move the clipping plane.
-
- oedgeflag : this program shows how to use edgeflag to control
- visibility of edges
- left mouse for animation
- middle mouse to turn Edge Flag OFF
- right mouse to turn Edge Flag ON
-
- ohidden : this program shows how to draw outlined polygon using
- stencil planes.
- left mouse for animation
- middle mouse to turn OFF stenciling
- right mouse to turn ON stenciling
-
- olight : a program which shows how to do hardware lighting (including
- two sided light). use left mouse to animate the object,
- middle mouse to turn on two sided light and right mouse
- to turn on single sided light.
-
- ostencil : a program which shows how to use stencil planes.
- left mouse for animation
- middle mouse to turn stenciling OFF
- right mouse to turn stenciling ON
-
- otessellate : this program shows how to tessellate concave polygons
- and polygons with holes using glu routines
- left mouse for animation
- middle mouse to turn Tessellation OFF
- right mouse to turn Tessellation ON
-
- otext : a program which shows how to create and draw bitmapped text.
- it achieves charstr() functionality of irisGL.
-
-
- textfun: takes bitmap fonts from the X server into an OpenGL client
- and convert them into OpenGL display lists with
- transformative geometry. Text can then be displayed from
- any perspective in 3D.
-
- The program renders OpenGL into a standard Motif drawing
- area and does not use any special OpenGL widget. Pull-down
- menus with toggles and radio buttons are used. The
- animation is controled by X Toolkit work procs; iconfiying
- textfun will stop the work proc and resume it when the
- program is uniconified.
-
- Various fonts can be switched between. A number of the
- fonts are X-scalable fonts demonstrating how the blocky
- nature of the text can be minimized with higher resolution
- fonts.
-
- textfun demonstrates:
- o Code to suck down X bitmap fonts so they can then be
- converted into geometry (ie, not glBitmap) display list
- fonts.
- o A pulldown menu with a radio button box.
- o the poor-man's OpenGL font manager!
-
-
- textfun5.1: uses the Makefile's textfun5.1 compile rule employing the
- IRIX_5_1_MOTIF_BUG_WORKAROUND flag for a Motif bug in IRIX 5.1
-
-
- xmblur: do motion blur in OpenGL with the libGLw widget.
-